# 限制 cmake 最低版本为 3.0
cmake_minimum_required(VERSION 3.0)
 
# 为当前工程命名
project(log_test_example)
 
# 引入头文件目录
include_directories(${PROJECT_SOURCE_DIR}/include)
include_directories(${PROJECT_SOURCE_DIR}/include/c11log)
include_directories(${PROJECT_SOURCE_DIR}/include/c11log/details)
include_directories(${PROJECT_SOURCE_DIR}/include/c11log/sinks)
 
# 引入库文件搜索路径（可选）
#link_directories(${PROJECT_SOURCE_DIR}/3rd-part/lib)
 
# 引入源文件
file(GLOB ALL_SOURCES 
    ${PROJECT_SOURCE_DIR}/example/*.cpp 
)
 
# 生成可执行文件
add_executable(${PROJECT_NAME} ${ALL_SOURCES})
 
# 链接库文件
#target_link_libraries(${PROJECT_NAME} test)